// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#ifndef LOG_I_H
#define LOG_I_H

#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>

#include "MylogWorkQueue.h"


class MyLogI : public Ice::Logger {
public:

        MyLogI(const MylogWorkQueuePtr& mylogWorkQueuePtr, const std::string& prefix);

	virtual void print(const std::string& message);
	virtual void trace(const std::string& category,	const std::string& message);
	virtual void warning(const std::string& message);
	virtual void error(const std::string& message);

private:

	std::string _prefix;
	MylogWorkQueuePtr _mylogWorkQueue;
};

typedef IceUtil::Handle<MyLogI> MyLogIPtr;

#endif

